package com.xd.clap.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class Results {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ExcelProperty("建议表id")
    private Integer aid;

    @ExcelProperty("处理结果")
    private String content;

    @ExcelProperty("姓名")
    private String name;

    @ExcelProperty("处理人手机号")
    private String phone;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ExcelProperty("创建时间")
    private Date createTime;

    @ExcelProperty("驳回理由")
    private String reason;

    @ExcelProperty(value = "图片列表")
    @TableField(exist = false)
    private List<Image> imageList;
}
